package cn.edu.nit.sys.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Author 罗文斌
 * @Date 2023/3/21
 * @Version 1.0.0
 */
public enum WeekEnum {
    MONDAY(0, "星期一"),
    TUESDAY(1, "星期二"),
    WEDNESDAY(2, "星期三"),
    THURSDAY(3, "星期四"),
    FRIDAY(4, "星期五"),
    SATURDAY(5, "星期六"),
    SUNDAY(6, "星期日");


    @EnumValue
    private int code;
    @JsonValue
    private String label;

    WeekEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }
}
